<?php

/**
 * Manage some base actions
 * @author Trung Tran
 */
class SearchController extends Controller {
    public function filters(){
        return array(
            'accessControl', // perform access control for CRUD operations
            'postOnly + post', // we only allow deletion via POST request
        );
    }

    /**
     * search near taxi
     *
     * @var string token
     * @var string lat
     * @var string lng
     *
     * @return json
     */
    public function actionIndex($token,$lat,$lng){
        $this->toJSON(array(
            'id' => 'id',
            'name' => 'name',
            'verhicleType' => 'Type',
            'distance' => 'distance',
            'lat' => $lat,
            'lng' => $lng,
            'timeArrive' => 'time',
        ));
    }



}